package com.cyanz.dao;

import com.cyanz.entity.Address;
import com.cyanz.entity.Student;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface StudentMapperInterface2 {
    @Select(value = "select * from tb_student")
    @Results(value = @Result(property = "address" ,column = "address_id" ,one=@One(select = "com.cyanz.dao.AddressMapper.getByStuId") ))
    List<Student> getStuAndAddressById();


}
